package com.ftg.learn.chapter09.base02.entity;

import com.ftg.learn.chapter09.base02.annotation.Column;
import com.ftg.learn.chapter09.base02.annotation.Id;
import com.ftg.learn.chapter09.base02.annotation.TableName;

/**
 * 学生实体类  【用于关联某一张表的类】
 *
 * @author 布衣
 */
@TableName("students")
public class StudentsEntity {

    @Id("student_id")
    private Integer studentId;

    @Column("name")
    private String name;

    @Column("age")
    private Integer age;

    @Column("class_id")
    private Integer classId;

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }
}
